package cn.edu.hnu.gpg.dto;

import cn.edu.hnu.gpg.entity.StudentDoc;
import cn.edu.hnu.gpg.entity.UploadedFile;

public class StudentDocumentInfo {

    private String fileName;
    private Integer fileId;
    private Integer studentId;
    private Integer phaseId;

    public StudentDocumentInfo() {}

    public StudentDocumentInfo(StudentDoc studentDoc) {
        if (studentDoc == null)
            return;

        this.fileId = studentDoc.getUploadedFileId();
        this.phaseId = studentDoc.getPhaseId();
        this.studentId = studentDoc.getStudentId();
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setPhaseId(Integer phaseId) {
        this.phaseId = phaseId;
    }

    public Integer getPhaseId() {
        return phaseId;
    }
}
